package com.kgc.scd.service;/**
 * <p>
 *
 * </p>
 *
 * @author shelina
 * @since 2022/11/17
 */

import com.kgc.scd.bean.UserVO;
import com.kgc.scd.util.RequestResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created On : 2022/11/17.
 * <p>
 * Author : Administrator
 * <p>
 * Description: WebWechatPayService
 */
@FeignClient(value = "wyyxmall-j-l-t-server")
public interface WebWechatPayService {
    /**
     * @author : Administrator
     * @date   : 2022/11/4
     * @param  : []
     * @return : java.lang.String
     * @description : 生成请求微信支付的统一下单接口参数 ，xml格式字符串
     */

    @PostMapping("/unifyOrder")
    RequestResult<Map<String, String>> wechatPayUnifiedOrder(@RequestHeader("token") String token,@RequestParam("num") Integer num);



    /**
     * @author : Administrator
     * @date   : 2022/11/17
     * @param  : [userVo]
     * @return : java.lang.String
     * @description : 查询当前用户的会员到期时间
     */
    @PostMapping("/queryUserMemberDate")
    RequestResult<String> queryUserMemberDate(@RequestBody UserVO userVo);
}
